package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IndsvrSunpanelSystemMonitoringMapper;
import com.ruoyi.system.domain.IndsvrSunpanelSystemMonitoring;
import com.ruoyi.system.service.IIndsvrSunpanelSystemMonitoringService;

/**
 * 系统信息监控Service业务层处理
 * 
 * @author IndSvr
 * @date 2025-06-20
 */
@Service
public class IndsvrSunpanelSystemMonitoringServiceImpl implements IIndsvrSunpanelSystemMonitoringService 
{
    @Autowired
    private IndsvrSunpanelSystemMonitoringMapper indsvrSunpanelSystemMonitoringMapper;

    /**
     * 查询系统信息监控
     * 
     * @param id 系统信息监控主键
     * @return 系统信息监控
     */
    @Override
    public IndsvrSunpanelSystemMonitoring selectIndsvrSunpanelSystemMonitoringById(Long id)
    {
        return indsvrSunpanelSystemMonitoringMapper.selectIndsvrSunpanelSystemMonitoringById(id);
    }

    /**
     * 查询系统信息监控列表
     * 
     * @param indsvrSunpanelSystemMonitoring 系统信息监控
     * @return 系统信息监控
     */
    @Override
    public List<IndsvrSunpanelSystemMonitoring> selectIndsvrSunpanelSystemMonitoringList(IndsvrSunpanelSystemMonitoring indsvrSunpanelSystemMonitoring)
    {
        return indsvrSunpanelSystemMonitoringMapper.selectIndsvrSunpanelSystemMonitoringList(indsvrSunpanelSystemMonitoring);
    }

    /**
     * 新增系统信息监控
     * 
     * @param indsvrSunpanelSystemMonitoring 系统信息监控
     * @return 结果
     */
    @Override
    public int insertIndsvrSunpanelSystemMonitoring(IndsvrSunpanelSystemMonitoring indsvrSunpanelSystemMonitoring)
    {
        indsvrSunpanelSystemMonitoring.setCreateTime(DateUtils.getNowDate());
        return indsvrSunpanelSystemMonitoringMapper.insertIndsvrSunpanelSystemMonitoring(indsvrSunpanelSystemMonitoring);
    }

    /**
     * 修改系统信息监控
     * 
     * @param indsvrSunpanelSystemMonitoring 系统信息监控
     * @return 结果
     */
    @Override
    public int updateIndsvrSunpanelSystemMonitoring(IndsvrSunpanelSystemMonitoring indsvrSunpanelSystemMonitoring)
    {
        indsvrSunpanelSystemMonitoring.setUpdateTime(DateUtils.getNowDate());
        return indsvrSunpanelSystemMonitoringMapper.updateIndsvrSunpanelSystemMonitoring(indsvrSunpanelSystemMonitoring);
    }

    /**
     * 批量删除系统信息监控
     * 
     * @param ids 需要删除的系统信息监控主键
     * @return 结果
     */
    @Override
    public int deleteIndsvrSunpanelSystemMonitoringByIds(Long[] ids)
    {
        return indsvrSunpanelSystemMonitoringMapper.deleteIndsvrSunpanelSystemMonitoringByIds(ids);
    }

    /**
     * 删除系统信息监控信息
     * 
     * @param id 系统信息监控主键
     * @return 结果
     */
    @Override
    public int deleteIndsvrSunpanelSystemMonitoringById(Long id)
    {
        return indsvrSunpanelSystemMonitoringMapper.deleteIndsvrSunpanelSystemMonitoringById(id);
    }
}
